package cn.script.app.bean;

import cn.script.game.GameOpt;
import cn.script.util.StringUtils;

/**
 * 角色信息
 */
public class RoleInfo {

    private String hwnd;

    private String name;

    private GameOpt go;

    private boolean off = true;

    public boolean getOff() {
        return this.off;
    }

    public void setOff(boolean off) {
        this.off = off;
    }

    public String getHwnd() {
        return this.hwnd;
    }

    public void setHwnd(String hwnd) {
        this.hwnd = hwnd;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public GameOpt getGo() {
        return this.go;
    }

    public void setGo(GameOpt go) {
        this.go = go;
    }

    public void init() {
        this.go = new GameOpt(StringUtils.toLong(this.hwnd));
        this.go.wio().bindWindow();

    }
}
